<?php $results = $view->style_plugin->rendered_fields; ?>

<div class="all-properties-content">
  <h3><?php print t('All properties'); ?></h3>
  <div class="list-by-result">
    <div class="list-dropdown">
      <p><?php print t('List results by'); ?> :</p>
      <ul class="list clearfix">
        <li>
          <div class="d_down">
            <select class="price">
              <option><?php print t('Price'); ?></option>
              <option value="price-asc"><?php print t('Ascending'); ?></option>
              <option value="price-desc"><?php print t('Descending'); ?></option>
            </select>
          </div>
        </li>
        <li>
          <div class="d_down">
            <select class="bedroom">
              <option><?php print t('Bedrooms'); ?></option>
              <option value="bed-asc"><?php print t('Ascending'); ?></option>
              <option value="bed-desc"><?php print t('Descending'); ?></option>
            </select>
          </div>
        </li>
        <li>
          <div class="d_down">
            <select class="bedroom">
              <option><?php print t('Destinations'); ?></option>
              <option value="island-asc"><?php print t('Ascending'); ?></option>
              <option value="island-desc"><?php print t('Descending'); ?></option>
            </select>
          </div>
        </li>
      </ul>
      <form action="<?php print url('cvr-num', array('absolute' => true)); ?>" method="POST" class="your-cv-number">
        <input type="text" value="Your CVR number" id="cvrnum" name="cvrnum">
        <input type="submit" value="" id="go">
      </form>
    </div>
  </div>
  <div class="properties clearfix">
    <?php foreach ($results as $id => $result) { ?>
    <div class="property clearfix" id="01">
      <div class="img-property">
        <?php print $result['field_pro_gal_fid']; ?>
        <p class="description"><?php print $result['body']; ?></p>
      </div>
      
      <div class="descrip-property">
        <ul>
          <li><p><span><?php print t('Island'); ?></span> <?php print $result['field_pro_island_nid']; ?></p></li>
          <li><p><span><?php print t('Bathroom'); ?></span> <?php print $result['field_pro_bath_value']; ?></p></li>
          <li><p><span><?php print t('Bedroom'); ?></span> <?php print $result['field_pro_beds_value']; ?></p></li>
          <li><p><span><?php print t('Type'); ?></span> <?php print $result['name']; ?></p></li>
        </ul>
      </div>
      
      <div class="btn-readmore">
        <p><?php print l('Read More', 'node/' . $result['nid']); ?></p>
      </div>
    </div>
    <?php } ?>
  </div>
</div>